package com.card.game.log;

import java.util.List;

import com.card.game.log.ShLog.Log;
import com.google.common.collect.Lists;
import com.xiaoao.net.utils.TimeUtils;

/**   
 * @Description: TODO(用一句话描述该文件做什么) 
 * @author siyunlong  
 * @date 2016年9月29日 下午6:17:45 
 * @version V1.0   
 */
public class ShLog {
	public class Log {
		String id;
		String name;
		int score;
		public Log(String id, String name, int score) {
			this.id = id;
			this.name = name;
			this.score = score;
		}
		public String getName() {
			return name;
		}
		public int getScore() {
			return score;
		}
	}
	private String date;
	private List<Log> scoreLogs;
	private int roomId;
	private String backId;
	
	public ShLog(int roomId) {
		this.date = TimeUtils.GetCurrentTimeStamp();
		this.scoreLogs = Lists.newArrayList();
		this.roomId = roomId;
	}
	
	public void addLog(String userId,String name,int score) {
		scoreLogs.add(new Log(userId, name, score));
	}

	public void setBackId(String backId) {
		this.backId = backId;
	}
	public List<Log> getScoreLogs() {
		return scoreLogs;
	}
}
